<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd"
             xmlns:camunda="http://camunda.org/schema/1.0/dmn"
             id="definitions"
             name="camunda"
             namespace="http://camunda.org/schema/1.0/dmn">

  <decision id="decision" name="decision">
    <decisionTable id="decisionTable" hitPolicy="RULE ORDER">
      <input id="input1" label="Input">
        <inputExpression id="inputExpression1">
          <text>${input1}</text>
        </inputExpression>
      </input>
      <input id="input2" camunda:inputVariable="x">
        <inputExpression id="inputExpression2">
          <text>${input2}</text>
        </inputExpression>
      </input>
      <input id="input3">
        <inputExpression />
      </input>
      <output id="output1" label="Output 1" name="out1" />
      <output id="output2" name="out2"/>
      <output id="output3" label="Collect Outputs" name="collectMe" typeRef="integer" />
      <rule id="rule1">
        <inputEntry>
          <text>true</text>
        </inputEntry>
        <inputEntry>
          <text>"foo"</text>
        </inputEntry>
        <inputEntry>
          <text/>
        </inputEntry>
        <outputEntry>
          <text>${output1}</text>
        </outputEntry>
        <outputEntry>
          <text>"camunda"</text>
        </outputEntry>
        <outputEntry />
      </rule>
      <rule id="rule2">
        <inputEntry>
          <text>false</text>
        </inputEntry>
        <inputEntry>
          <text>"bar"</text>
        </inputEntry>
        <inputEntry>
          <text/>
        </inputEntry>
        <outputEntry />
        <outputEntry>
          <text>"camunda"</text>
        </outputEntry>
        <outputEntry />
      </rule>
      <rule id="rule3">
        <inputEntry>
          <text/>
        </inputEntry>
        <inputEntry>
          <text/>
        </inputEntry>
        <inputEntry expressionLanguage="juel">
          <text>${input3}</text>
        </inputEntry>
        <outputEntry />
        <outputEntry />
        <outputEntry />
      </rule>
      <rule id="rule4">
        <inputEntry>
          <text/>
        </inputEntry>
        <inputEntry>
          <text/>
        </inputEntry>
        <inputEntry expressionLanguage="juel">
          <text>${input3}</text>
        </inputEntry>
        <outputEntry />
        <outputEntry />
        <outputEntry>
          <text>10</text>
        </outputEntry>
      </rule>
      <rule id="rule5">
        <inputEntry>
          <text/>
        </inputEntry>
        <inputEntry>
          <text/>
        </inputEntry>
        <inputEntry expressionLanguage="juel">
          <text>${input3}</text>
        </inputEntry>
        <outputEntry/>
        <outputEntry/>
        <outputEntry>
          <text>30</text>
        </outputEntry>
      </rule>
      <rule id="rule6">
        <inputEntry>
          <text/>
        </inputEntry>
        <inputEntry>
          <text/>
        </inputEntry>
        <inputEntry expressionLanguage="juel">
          <text>${input3}</text>
        </inputEntry>
        <outputEntry />
        <outputEntry />
        <outputEntry>
          <text>50</text>
        </outputEntry>
      </rule>
    </decisionTable>
  </decision>
</definitions>
